import { request } from './request.js'

// 登录
export const login = ({username, password}) => {
  return request({
    url: `/account/login-by-pwd`,
    method: 'post',
    data: {username, password}
  })
}
// 卡列表接口
export const cardLits = (data) => {
  return request({
    url: `/account/card-lists`,
    method: 'post',
    data
  })
}
// 卡流水记录接口
export const recordLits = (data) => {
  return request({
    url: `/account/record-lists`,
    method: 'post',
    data
  })
}